﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BUIANHQUAN.EXCERCISES.EX04
{
    public partial class TINHNGAY : Form
    {
        public TINHNGAY()
        {
            InitializeComponent();
        }

        private void bntXem_Click(object sender, EventArgs e)
        {
            DateControllers objDate = new DateControllers();

            //txtKetqua.Text = objDate.CheckDayOfMonth(int.Parse(txtThang.Text), int.Parse(cboNam.Text)).ToString();
            int Months = int.Parse(txtThang.Text);
            int Years = int.Parse(txtNam.Text);
            txtKetqua.Text = "Tháng " + Months + " năm " + Years + " có " + objDate.CheckDayOfMonth(int.Parse(txtThang.Text), int.Parse(txtNam.Text)) + " ngày";
        }

        private void txtKetqua_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
